/*
 Navicat Premium Data Transfer

 Source Server         : 本地数据库
 Source Server Type    : MySQL
 Source Server Version : 80013
 Source Host           : 127.0.0.1:3306
 Source Schema         : dentistdb

 Target Server Type    : MySQL
 Target Server Version : 80013
 File Encoding         : 65001

 Date: 16/07/2020 22:04:51
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for ythink_admin
-- ----------------------------
DROP TABLE IF EXISTS `ythink_admin`;
CREATE TABLE `ythink_admin` (
  `admin_id` int(10) NOT NULL,
  `username` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `password` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `admin_role` int(11) DEFAULT '0' COMMENT '角色（1：医生 2：专家）',
  `create_time` int(11) DEFAULT '0',
  PRIMARY KEY (`admin_id`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of ythink_admin
-- ----------------------------
BEGIN;
INSERT INTO `ythink_admin` VALUES (1, 'admin', 'e10adc3949ba59abbe56e057f20f883e', 1, 0);
INSERT INTO `ythink_admin` VALUES (2, 'admin2', 'e10adc3949ba59abbe56e057f20f883e', 2, 0);
COMMIT;

-- ----------------------------
-- Table structure for ythink_case_list
-- ----------------------------
DROP TABLE IF EXISTS `ythink_case_list`;
CREATE TABLE `ythink_case_list` (
  `case_list_id` int(11) NOT NULL AUTO_INCREMENT,
  `name` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '姓名',
  `sex` int(11) DEFAULT '0' COMMENT '性别（0：男 1：女）',
  `age` int(11) DEFAULT '0' COMMENT '年龄',
  `symptom` char(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '症状',
  `last_time` int(11) DEFAULT '0' COMMENT '最后操作时间',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `status` int(11) DEFAULT '0' COMMENT '状态（0：等待医生出方案 1：等待专家回复方案 2：等待医生回复专家 3：方案被确定）',
  `order_status` int(11) DEFAULT '0' COMMENT '订单状态（0：未发布 1：已发布 2：已确定）',
  `model` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '型号',
  `price` decimal(50,2) DEFAULT '0.00' COMMENT '价格',
  PRIMARY KEY (`case_list_id`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=FIXED;

-- ----------------------------
-- Records of ythink_case_list
-- ----------------------------
BEGIN;
INSERT INTO `ythink_case_list` VALUES (4, '', 0, 0, '', 1594780942, 1594727637, 0, 0, '', 0.00);
INSERT INTO `ythink_case_list` VALUES (5, '', 0, 0, '', 1594727758, 1594727758, 0, 0, '', 0.00);
INSERT INTO `ythink_case_list` VALUES (6, '邱昊', 0, 0, '', 1594728806, 1594727778, 0, 0, '', 0.00);
COMMIT;

-- ----------------------------
-- Table structure for ythink_message_list
-- ----------------------------
DROP TABLE IF EXISTS `ythink_message_list`;
CREATE TABLE `ythink_message_list` (
  `message_list_id` int(11) NOT NULL AUTO_INCREMENT,
  `case_list_id` int(11) DEFAULT '0',
  `message` char(255) COLLATE utf8mb4_bin DEFAULT NULL,
  `create_time` int(11) DEFAULT '0',
  `admin_id` int(11) DEFAULT '0',
  `admin_role` int(11) DEFAULT '0',
  PRIMARY KEY (`message_list_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

-- ----------------------------
-- Records of ythink_message_list
-- ----------------------------
BEGIN;
INSERT INTO `ythink_message_list` VALUES (1, 6, '阿斯顿', 1594776892, 1, 1);
INSERT INTO `ythink_message_list` VALUES (2, 6, 'asdasd', 1594776913, 1, 1);
INSERT INTO `ythink_message_list` VALUES (3, 6, 'asd', 1594779561, 0, 1);
INSERT INTO `ythink_message_list` VALUES (4, 6, 'asd', 1594779601, 1, 1);
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
